package net.atos.spring.animals;

import javax.persistence.Entity;

@Entity
public class Reptile extends Animal {

    private Integer numberOfLimbs;

    public static Reptile withNameAndNumberOfLimbs(String name, Integer numberOfLimbs) {
	return new Reptile(name, numberOfLimbs);
    }

    private Reptile(String string, Integer numberOfLimbs) {
	super(string);
	this.numberOfLimbs = numberOfLimbs;
    }

    public Integer getNumberOfLimbs() {
	return numberOfLimbs;
    }

    public void setNumberOfLimbs(Integer numberOfLimbs) {
	this.numberOfLimbs = numberOfLimbs;
    }
}
